<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script>
	const a = 10;
	const obj = {
		a,
		[a]:100,// 将名字为a的常量或变量的值作为属性名
		b:function(){
		
		},
		[{}]:99,// [object Object]:99
		[{b:100}]:999,// [object Object]:999
		[[1,2,3]]:88,
		c:()=>{
		
		},
		d(){
		
		}
	}
	console.log(obj);// {a:10,10:100,b,c,d};
	console.log({}.toString());
	console.log([1,2,3].toString());
	console.log(obj["1,2,3"])
	console.log(obj[[1,2,3]])
</script>
</html>